/*
 * @Author: xiweidong 1324156920@qq.com
 * @Date: 2025-08-26 16:41:41
 * @LastEditors: xiweidong 1324156920@qq.com
 * @LastEditTime: 2025-08-26 16:41:56
 * @FilePath: \web\src\store\theme.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { defineStore } from "pinia";
import { useDark, useToggle } from "@vueuse/core";

export const useThemeStore = defineStore("theme", () => {
  const isDark = useDark();
  const toggleTheme = useToggle(isDark);

  return { isDark, toggleTheme };
});